<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template member/header}

	<input type="hidden" id="hdErrMsg" />
	<div class="main-head">
		<span>用户中心 &gt; 账户管理 &gt; 密码修改</span>
	</div>
	<div class="con_box clear">
		<div class="btn-box clear" style="overflow:hidden;">
			<span class="tabs-con">
				<a id="loginPwd" href="javascript:void(0)" data-type="1" class="btn" data-bind="click:switchPwd">修改登录密码</a>
				<a id="withdrawalpwd" href="javascript:void(0)" data-type="2" class="btn active" data-bind="click:switchPwd">{if $_user['paypassword']}修改{else}设置{/if}取款密码</a>
			</span>
		</div>
		<div class="form-horizontal" data-bind="visible:showLoginPwd">
			<div class="control-group">
				<label class="control-label">输入旧登录密码：</label>
				<div class="controls">
					<input type="password" data-bind="value:oldLoginPwd" name="oldLoginPwd">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">输入新登录密码：</label>
				<div class="controls">
					<input type="password" data-bind="value:newLoginPwd" name="newLoginPwd">
					<span class="help-float">（密码由数字和字母组成，长度在6-20位之间）</span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">确认新登录密码：</label>
				<div class="controls">
					<input type="password" data-bind="value:okNewLoginPwd" name="okNewLoginPwd">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label"></label>
				<div class="controls">
					<a href="javascript:void(0)" class="btn" data-bind="click:modifyLoginPwd">修改</a>
					<a href="javascript:void(0)" class="btn" data-bind="click:reset">重置</a>
					<span data-bind="visible:isSubmitting">正在修改，请稍后...</span>
				</div>
			</div>
		</div>
		<div class="form-horizontal" data-bind="visible:showWithdrawalPwd">
			<div class="control-group">
				<span class="help-float" style="margin-left:58px;">提示：取款密码由4-6位数字或字母或数字和字母组成，在线取款时需要输入取款密码才能进行取款</span>
			</div>
			{if $_user['paypassword']}
			<div class="control-group">
                <label class="control-label">输入旧提款密码：</label>
                <div class="controls">
                    <input type="password" data-bind="value:oldWithdrawalPwd" name="oldWithdrawalPwd">
                    <span class="help-float">（由数字和字母或数字和字母组成4-6个字符）</span>
                </div>
            </div>
			{/if}
			<div class="control-group">
				<label class="control-label">输入新提款密码：</label>
				<div class="controls">
					<input type="password" data-bind="value:newWithdrawalPwd" name="newWithdrawalPwd">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">确认新提款密码：</label>
				<div class="controls">
					<input type="password" data-bind="value:okNewWithdrawalPwd" name="okNewWithdrawalPwd">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label"></label>
				<div class="controls">
					<a href="javascript:void(0)" class="btn" data-bind="click:modifyWithdrawalPwd">设置</a>
					<a href="javascript:void(0)" class="btn" data-bind="click:reset">重置</a>
					<span data-bind="visible:isSubmitting">正在修改，请稍后...</span>
				</div>
			</div>
		</div>
	</div>

	<script>
		var hasWithdrawalPwd = '{if $_user["paypassword"]}True{else}False{/if}';
		var IsGeneralize = 'True';
		var questionstatus = {if $passwordquestion}1{else}0{/if};
	</script>
	<script src="static/js/PWD.Edit.js"></script>
	<!--<script src="static/js/PWD.Question.js"></script>-->

{template member/footer}